
struct2.o:     file format elf32-littlearm


Disassembly of section .text:

00000000 <main>:
	int count;
	char something[20];
}stu[3] = {{12, 13, "esp"}, {15,16, "sk"}, {17, 18, "we"}};

int main()
{
   0:	e92d4800 	push	{fp, lr}
   4:	e28db004 	add	fp, sp, #4
   8:	e24dd008 	sub	sp, sp, #8
	struct ec *p;
	
	p = stu;
   c:	e59f30a4 	ldr	r3, [pc, #164]	; b8 <main+0xb8>
  10:	e50b3008 	str	r3, [fp, #-8]
	//p = (struct ec *) &stu[0].num;
	printf("%d\n", p);		// 地址
  14:	e51b1008 	ldr	r1, [fp, #-8]
  18:	e59f009c 	ldr	r0, [pc, #156]	; bc <main+0xbc>
  1c:	ebfffffe 	bl	0 <printf>
	printf("%d\n", p + 1);	
  20:	e51b3008 	ldr	r3, [fp, #-8]
  24:	e283301c 	add	r3, r3, #28
  28:	e1a01003 	mov	r1, r3
  2c:	e59f0088 	ldr	r0, [pc, #136]	; bc <main+0xbc>
  30:	ebfffffe 	bl	0 <printf>
	printf("%p\n", p);		// 地址(十六进制)
  34:	e51b1008 	ldr	r1, [fp, #-8]
  38:	e59f0080 	ldr	r0, [pc, #128]	; c0 <main+0xc0>
  3c:	ebfffffe 	bl	0 <printf>
	printf("%p\n", p + 1);	
  40:	e51b3008 	ldr	r3, [fp, #-8]
  44:	e283301c 	add	r3, r3, #28
  48:	e1a01003 	mov	r1, r3
  4c:	e59f006c 	ldr	r0, [pc, #108]	; c0 <main+0xc0>
  50:	ebfffffe 	bl	0 <printf>
	
	p = (struct ec *) &stu[0];	// ==	 p = stu;
  54:	e59f305c 	ldr	r3, [pc, #92]	; b8 <main+0xb8>
  58:	e50b3008 	str	r3, [fp, #-8]
	printf("%d\t%d\t%s\n", p->num, p->count, p->something);
  5c:	e51b3008 	ldr	r3, [fp, #-8]
  60:	e5931000 	ldr	r1, [r3]
  64:	e51b3008 	ldr	r3, [fp, #-8]
  68:	e5932004 	ldr	r2, [r3, #4]
  6c:	e51b3008 	ldr	r3, [fp, #-8]
  70:	e2833008 	add	r3, r3, #8
  74:	e59f0048 	ldr	r0, [pc, #72]	; c4 <main+0xc4>
  78:	ebfffffe 	bl	0 <printf>
	printf("%d\t%d\t%s\n", (p+1)->num, (p+1)->count, (p+1)->something);
  7c:	e51b3008 	ldr	r3, [fp, #-8]
  80:	e283301c 	add	r3, r3, #28
  84:	e5931000 	ldr	r1, [r3]
  88:	e51b3008 	ldr	r3, [fp, #-8]
  8c:	e283301c 	add	r3, r3, #28
  90:	e5932004 	ldr	r2, [r3, #4]
  94:	e51b3008 	ldr	r3, [fp, #-8]
  98:	e283301c 	add	r3, r3, #28
  9c:	e2833008 	add	r3, r3, #8
  a0:	e59f001c 	ldr	r0, [pc, #28]	; c4 <main+0xc4>
  a4:	ebfffffe 	bl	0 <printf>
	
	return 0;
  a8:	e3a03000 	mov	r3, #0
}
  ac:	e1a00003 	mov	r0, r3
  b0:	e24bd004 	sub	sp, fp, #4
  b4:	e8bd8800 	pop	{fp, pc}
	...
  c0:	00000004 	.word	0x00000004
  c4:	00000008 	.word	0x00000008
